home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
util
/
cdity
/
ModeProSrc.lha
/
Daemon
/
OldPatch
/
OLD
< prev
next >
Wrap
Text File
|
1997-11-22
|
1KB
|
40 lines
/*
if(pd->DNode->CenterFlags)
{
if(GetDisplayInfoData(NULL,(UBYTE *)&pd->DimInfo,sizeof(struct DimensionInfo),DTAG_DIMS,pd->ModeID))
{
if(pd->DNode->CenterFlags & 1)
{
if(pd->Width>-1)
{
#ifdef ADD_DEBUG_CODE
if(MPSem->Debug)
{
KP(" DimInfo.StdOScan.MinX=%ld DimInfo.StdOScan.MaxX=%ld Width=%ld\n",pd->DimInfo.StdOScan.MinX,pd->DimInfo.StdOScan.MaxX,pd->Width);
}
#endif
pd->NewTags[pd->TagNumber].ti_Tag=SA_Left;
pd->NewTags[pd->TagNumber].ti_Data=((pd->DimInfo.StdOScan.MaxX-pd->DimInfo.StdOScan.MinX)-pd->Width)/2+pd->DimInfo.StdOScan.MinX;
pd->TagNumber++;
}
}
if(pd->DNode->CenterFlags & 2)
{
if(pd->Height>-1)
{
#ifdef ADD_DEBUG_CODE
if(MPSem->Debug)
{
KP(" DimInfo.StdOScan.MinY=%ld DimInfo.StdOScan.MaxY=%ld Height=%ld\n",pd->DimInfo.StdOScan.MinY,pd->DimInfo.StdOScan.MaxY,pd->Height);
}
#endif
pd->NewTags[pd->TagNumber].ti_Tag=SA_Top;
pd->NewTags[pd->TagNumber].ti_Data=((pd->DimInfo.StdOScan.MaxY-pd->DimInfo.StdOScan.MinY)-pd->Height)/2+pd->DimInfo.StdOScan.MinY;
pd->TagNumber++;
}
}
}
}*/